package com.netease.financial.domain.interactor;

import com.netease.financial.domain.executor.PostExecutionThread;
import com.netease.financial.domain.executor.ThreadExecutor;
import com.netease.financial.domain.repository.NfsRepository;

import rx.Observable;

/**
 * Created by wyf on 1/27/16.
 */
public class GetActivityPageInfo extends UseCase {

    private final NfsRepository mNfsRepository;

    public GetActivityPageInfo(NfsRepository nfsRepository, ThreadExecutor threadExecutor, PostExecutionThread postExecutionThread) {
        super(threadExecutor, postExecutionThread);
        mNfsRepository = nfsRepository;
    }

    @Override
    public Observable buildUseCaseObservable() {
        return mNfsRepository.getActivityPageInfo();
    }

}
